﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using XCore.Domain.Entities;

namespace SaaS.Model.Entity.Auths
{
    /// <summary>
    /// 总管理员角色表
    /// </summary>
    [Table("Sys_Roles")]
    public class SystemRole : IEntity<int>
    {
        [Column("RoleId"), Key]
        public int Id { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        [StringLength(32)]
        [Required]
        public string Name { get; set; }
        /// <summary>
        /// 角色所含人数
        /// </summary>
        public int Count { get; set; }
        /// <summary>
        /// 权限,号分隔
        /// </summary>
        public string Permissions { get; set; }

    }
}
